package com.skhu.as.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.skhu.as.domain.FaultHandling;

public class FaultHandlingM implements RowMapper {
	
	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {

		FaultHandling faultHandling = new FaultHandling();
		
		faultHandling.setFaultHandlingNo(rs.getInt("fault_handling_no"));
		faultHandling.setReceptionistNo(rs.getInt("receptionist_no"));
		faultHandling.setDutyHoursNo(rs.getInt("duty_hours_no"));
		faultHandling.setRequestTypeNo(rs.getInt("request_type_no"));
		faultHandling.setRequesterNo(rs.getInt("requester_no"));
		faultHandling.setFirstWorkerNo(rs.getInt("first_worker_no"));
		faultHandling.setProcessStatusNo(rs.getInt("process_status_no"));
		faultHandling.setReceiptDate(rs.getString("receipt_date"));
		faultHandling.setProcessDate(rs.getString("process_date"));
		faultHandling.setRequestContent(rs.getString("request_content"));
		faultHandling.setProcessingInformation(rs.getString("processing_information"));
		
		return faultHandling;
	}
	
}
